import Lists from '@/components/Lists'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Register from '@/components/Register'

const routes = [
  {
    path: '/list',
    name: 'Lists',
    component: Lists,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/register',
    name: 'Register',
    component: Register,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: Login,
    meta: {
      requiresAuth: false
    }
  },
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      requiresAuth: false
    }
  }
]

export default routes
